package com.zdb.demo.design.principle.demeter;

import java.util.ArrayList;
import java.util.List;

public class TeamLeader {

    public int checkNumber() {
        List<Course> list = new ArrayList<>();
        for(int i=0; i<20; i++) {
            list.add(new Course());
        }
        return list.size();
    }
}
